﻿<%@ Page Title="城市采购类型所占比例" Language="C#" MasterPageFile="~/Master/MasterPage_New.master"
    AutoEventWireup="true" CodeBehind="SortSourceRateOfCity.aspx.cs" Inherits="HZ.Supervise.Web.Secondphase.SortSourceRateOfCity" %>

<%@ Register Src="~/Common/QueryControl.ascx" TagName="QueryControl" TagPrefix="uc1" %>
<%@ Register Src="../Common/MaxforMonth.ascx" TagName="MaxforMonth" TagPrefix="uc3" %>
<%@ Register Src="../Common/AreaControls.ascx" TagName="AreaControls" TagPrefix="uc2" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">

    <script language="javascript">

        function disTime(a) {
            document.getElementById("ctl00_ContentPlaceHolder1_hidTime").value = a;

        }
        function Load() {
            if (document.getElementById("ctl00_ContentPlaceHolder1_hidTime").value == "" || document.getElementById("ctl00_ContentPlaceHolder1_hidTime").value == "rdoTime1") {
                document.getElementById("rdoTime1").checked = true;
            } else {
                document.getElementById("rdoTime2").checked = true;
            }
        }
    </script>

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div id="tabnav">
        <ul>
            <li style='<%=HZ.Supervise.Web.Function.CheckMenuByUserID("县区排名")%>'><a href="../Secondphase/ReportArea/ProcureArea.aspx">
                县区排名</a></li>
            <li style='<%=HZ.Supervise.Web.Function.CheckMenuByUserID("城市排名")%>'><a href="ReportArea/RankOfCity.aspx">
                城市排名</a></li>
            <li style='<%=HZ.Supervise.Web.Function.CheckMenuByUserID("医院排名")%>'><a href="ProcureHospitalMax.aspx">
                医院排名</a></li>
            <li style='<%=HZ.Supervise.Web.Function.CheckMenuByUserID("配送排名")%>'><a href="ProcureCompanyPS.aspx">
                配送排名</a></li>
            <li style='<%=HZ.Supervise.Web.Function.CheckMenuByUserID("药品排名")%>'><a href="ProcureMax.aspx">
                药品排名</a></li>
            <li style='<%=HZ.Supervise.Web.Function.CheckMenuByUserID("医院采购类型所占比例")%>'><a href="SortSourceRate.aspx">
                医院采购类型所占比例</a></li>
            <li style='<%=HZ.Supervise.Web.Function.CheckMenuByUserID("县区采购类型所占比例")%>'><a href="SortSourceRateOfArea.aspx">
                县区采购类型所占比例</a></li>
            <li class="active"><a href="javascript:void(0);">城市采购类型所占比例</a></li>
            
            <li style='<%=HZ.Supervise.Web.Function.CheckMenuByUserID("采购单次数")%>'><a href="SortSourceRateCount.aspx">
                采购单次数</a></li>
        </ul>
    </div>
    <div id="tabcontent2">
        <table class="querylist">
            <tr>
                <td>
                    <table class="querylist">
                        <tr>
                            <td align="right">
                                采购类型：
                            </td>
                            <td align="left">
                                <asp:DropDownList ID="ddlSortSource" runat="server">
                                    <asp:ListItem Value="-1">全部</asp:ListItem>
                                    <asp:ListItem Value="0">日常采购</asp:ListItem>
                                    <asp:ListItem Value="1">临时采购</asp:ListItem>
                                    <asp:ListItem Value="2">应急采购</asp:ListItem>
                                </asp:DropDownList>
                            </td>
                            <td align="right">
                                比例查询：
                            </td>
                            <td align="left">
                                <asp:DropDownList runat="server" ID="ddlCompare">
                                    <asp:ListItem Value="greater">大于等于</asp:ListItem>
                                    <asp:ListItem Value="littler">小于等于</asp:ListItem>
                                </asp:DropDownList>
                                <asp:TextBox runat="server" ID="txtRate"></asp:TextBox>
                                <asp:RangeValidator ID="RangeValidator1" runat="server" ControlToValidate="txtRate"
                                    ErrorMessage="格式不正确，应输入0~1之间的小数，例如：0.1" MaximumValue="1" MinimumValue="0" Type="Double"
                                    Display="Dynamic"></asp:RangeValidator>
                            </td>
                            <td align="right">
                                时间从:
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtTimeFrom" runat="server" Width="105px" onFocus="WdatePicker({dateFmt:'yyyy-MM '})"></asp:TextBox>
                            </td>
                            <td align="right">
                                到:
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtTimeTo" runat="server" Width="105px" onFocus="WdatePicker({dateFmt:'yyyy-MM '})"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td align="right">
                                排序：
                            </td>
                            <td align="left">
                                <asp:DropDownList runat="server" ID="ddlName">
                                    <asp:ListItem Value="PurchaseAmountTotal" Selected="True">采购金额</asp:ListItem>
                                    <asp:ListItem Value="sortsourcerate">所占比例</asp:ListItem>
                                    <asp:ListItem Value="areaname">地区名称</asp:ListItem>
                                </asp:DropDownList>
                                <asp:DropDownList runat="server" ID="ddlsort">
                                    <asp:ListItem Value="asc">升序</asp:ListItem>
                                    <asp:ListItem Value="desc" Selected="True">降序</asp:ListItem>
                                </asp:DropDownList>
                            </td>
                            <td align="right">
                                城市：
                            </td>
                            <td align="left">
                                <asp:DropDownList runat="server" ID="ddlCity">
                                    <asp:ListItem Value="220000">所有城市</asp:ListItem>
                                    <asp:ListItem Value="220100">吉林省长春市</asp:ListItem>
                                    <asp:ListItem Value="220200">吉林省吉林市</asp:ListItem>
                                    <asp:ListItem Value="220300">吉林省四平市</asp:ListItem>
                                    <asp:ListItem Value="220400">吉林省辽源市</asp:ListItem>
                                    <asp:ListItem Value="220500">吉林省通化市</asp:ListItem>
                                    <asp:ListItem Value="220600">吉林省白山市</asp:ListItem>
                                    <asp:ListItem Value="220700">吉林省松原市</asp:ListItem>
                                    <asp:ListItem Value="220800">吉林省白城市</asp:ListItem>
                                    <asp:ListItem Value="222400">延边朝鲜族自治州</asp:ListItem>
                                    
                                </asp:DropDownList>
                            </td>
                        </tr>
                    </table>
                </td>
                <td width="130px">
                    <asp:Button ID="btnQuery" runat="server" Text="查  询" OnClick="btnQuery_Click" CssClass="btn"
                        SkinID="search" ToolTip="点击查询符合条件的数据" />
                </td>
            </tr>
        </table>
    </div>
    <asp:GridView ID="gvwProcureCatalog" runat="server" CssClass="mainlist" AutoGenerateColumns="False"
        EmptyDataText="暂无符合条件的数据！">
        <Columns>
            <asp:BoundField DataField="areaname" HeaderText="地区名称" ReadOnly="true" />
            <asp:BoundField HeaderText="采购类型" DataField="addDataColumn" />
            <asp:BoundField HeaderText="采购金额" DataField="PurchaseAmountTotal" />
            <asp:BoundField HeaderText="配送金额" DataField="DistributeAmountTotal" />
            <asp:BoundField HeaderText="配送率" DataField="addDistributeRate" />
            <asp:BoundField HeaderText="入库金额" DataField="WareHouseAmountTotal" />
            <asp:BoundField HeaderText="入库率" DataField="addWarehouseRate" />
            <asp:BoundField DataField="PurchaseAmountTotal1" HeaderText="采购总金额" />
            <asp:BoundField HeaderText="采购类型所占比例" DataField="addsortsourcerate" />
        </Columns>
    </asp:GridView>
    <div>
        <span style="float: left; width: 30%">
            <hz:HzButton ID="btnExcel" runat="server" CssClass="btn" Text="导出数据" OnClick="btnExcel_Click" /></span><span
                style="float: right; width: 70%"><webdiyer:AspNetPager ID="AspNetPager1" runat="server"
                    OnPageChanged="AspNetPager1_PageChanged" AlwaysShow="True" ShowPageSizeBox="True">
                </webdiyer:AspNetPager>
            </span>
    </div>
    <div class="listip">
        <ul>
            <li>说明:1.<span>此数据是静态数据，每24小时统计一次。</span> </li>
            <li>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;2.<span>配送率计算方式为：配送金额/采购金额；入库率计算方式为：入库金额/采购金额。</span>
            </li>
            <li>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;3.<span>采购类型所占比例计算方式为：采购金额/采购总金额。</span>
        </ul>
    </div>
</asp:Content>
